package jxerializeml.handling.serialization;

import jxerializeml.clues.classes.InvokeClassListeners;

/**
 * <p>
 *   Contains two methods called during serialization. However, it will be only
 *   called if annotation {@link InvokeClassListeners} was used previously.
 * </p>
 * <p>
 *   You don't have to implement this interface. You can just define these two
 *   methods directly (doesn't matter if they will be private).
 * </p>
 * 
 * @author Tomáš Zíma
 */
public interface SerializationListener {
	/** Called before serialization. */
	public void preserialize();
	
	/** Called after serialization. */
	public void postserialize();
}
